<section class="block-announcements-announcement<?php echo ( ($this->count%2 > 0) ? ' alternative' : ''); ?>">
    <section class="block-announcements-announcement-icon">
        <img src="<?php echo $this->baseUrl(); ?>/images/icon_announcement.png" alt="Announcement" />
    </section>
    <?php
        $course = $this->object->Course;
    ?>
    <a href="<?php echo $this->baseUrl(); ?>/course/view/id/<?php echo $course->Id; ?>">
        <span class="block-announcements-announcement-course" title="<?php echo $course->Name; ?>">
            <?php
                    if(strlen($course->Name) > 13)
                    {
                        echo substr($course->Name, 0, 13)."&hellip;";
                    }
                    else
                    {
                        echo $course->Name;
                    }
                ?>
        </span>
    </a>
    <span class="block-announcements-announcement-seperator">&bull;</span>
    <a href="<?php echo $this->baseUrl(); ?>/announcement/view/id/<?php echo $this->object->Id; ?>">
        <span class="block-announcements-announcement-title" title="<?php echo $this->object->Title; ?>">
            <?php
                if(strlen($this->object->Title) > 30)
                {
                    echo substr($this->object->Title, 0, 30)."&hellip;";
                }
                else
                {
                    echo $this->object->Title;
                }
            ?>
        </span>
    </a>
    <span class="block-announcements-announcement-date">
        <?php echo $this->object->CreationDate; ?>
    </span>
</section>